﻿



//using System;
//using System.Collections.Generic;
//using System.Runtime.Serialization;
//using formworks;

//namespace entity
//{

//    /// <summary> 
//    /// 实体类：TB_ProductStorage
//    /// 数据库名称：TB_ProductStorage
//    /// 描述：物资入库
//    /// </summary>
//    [DataContract]
//    public class TB_ProductStorage
//    {


//        ///<summary>
//        /// ID
//        /// </summary>
//        [Fields("ID", "uniqueidentifier", 16, false, 0, "ID")]
//        [DataMember]
//        [Constraints(Constraints.Types.PrimaryKey, "PK_TB_PRODUCTSTORAGE", "ID", "")]
//        public string ID { get; set; }



//        ///<summary>
//        /// 入库单据编号
//        /// </summary>
//        [Fields("StorageCode", "varchar", 50, false, 0, "入库单据编号")]
//        [DataMember]
//        public string StorageCode { get; set; }



//        ///<summary>
//        /// 合同物资分配ID
//        /// </summary>
//        [Fields("AgreementProductDistributionID", "uniqueidentifier", 16, true, 0, "合同物资分配ID")]
//        [DataMember]
//        public string AgreementProductDistributionID { get; set; }



//        ///<summary>
//        /// 仓库ID
//        /// </summary>
//        [Fields("WareHouseID", "uniqueidentifier", 16, false, 0, "仓库ID")]
//        [DataMember]
//        [Constraints(Constraints.Types.ForeignKey, "FK_ProductStorage_WareHouseID", "WareHouseID", "REFERENCES ComYeeMS.dbo.TB_WareHouse (ID)")]
//        public string WareHouseID { get; set; }


//        ///<summary>
//        /// 仓库ID（WareHouseID）的引用实现实体对象
//        /// </summary>
//        [DataMember]
//        [References("WareHouseID", "ID", "REFERENCES ComYeeMS.dbo.TB_WareHouse (ID)")]
//        public TB_WareHouse ref_TB_WareHouse { get; set; }


//        ///<summary>
//        /// 会计期ID
//        /// </summary>
//        [Fields("AccountingDateID", "uniqueidentifier", 16, false, 0, "会计期ID")]
//        [DataMember]
//        [Constraints(Constraints.Types.ForeignKey, "FK_ProductStorage_AccountingDateID", "AccountingDateID", "REFERENCES ComYeeMS.dbo.TB_AccountingDate (ID)")]
//        public string AccountingDateID { get; set; }


//        ///<summary>
//        /// 会计期ID（AccountingDateID）的引用实现实体对象
//        /// </summary>
//        [DataMember]
//        [References("AccountingDateID", "ID", "REFERENCES ComYeeMS.dbo.TB_AccountingDate (ID)")]
//        public TB_AccountingDate ref_TB_AccountingDate { get; set; }


//        ///<summary>
//        /// 入库日期
//        /// </summary>
//        [Fields("StorageDateTime", "datetime", 8, false, 0, "入库日期")]
//        [DataMember]
//        public DateTime StorageDateTime { get; set; }



//        ///<summary>
//        /// 录入人ID
//        /// </summary>
//        [Fields("PersonID", "uniqueidentifier", 16, false, 0, "录入人ID")]
//        [DataMember]
//        [Constraints(Constraints.Types.ForeignKey, "FK_ProductStorage_PersonID", "PersonID", "REFERENCES ComYeeMS.dbo.aspnet_Users (UserId)")]
//        public string PersonID { get; set; }


//        ///<summary>
//        /// 录入人ID（PersonID）的引用实现实体对象
//        /// </summary>
//        [DataMember]
//        [References("PersonID", "UserId", "REFERENCES ComYeeMS.dbo.aspnet_Users (UserId)")]
//        public aspnet_Users ref_aspnet_Users { get; set; }


//        ///<summary>
//        /// 录入日期
//        /// </summary>
//        [Fields("StorageTime", "datetime", 8, false, 0, "录入日期")]
//        [DataMember]
//        public DateTime StorageTime { get; set; }



//        ///<summary>
//        /// 入库类型ID
//        /// </summary>
//        [Fields("AccessTypeID", "uniqueidentifier", 16, false, 0, "入库类型ID")]
//        [DataMember]
//        [Constraints(Constraints.Types.ForeignKey, "FK_ProductStorage_AccessTypeID", "AccessTypeID", "REFERENCES ComYeeMS.dbo.TB_AccessType (ID)")]
//        public string AccessTypeID { get; set; }


//        ///<summary>
//        /// 入库类型ID（AccessTypeID）的引用实现实体对象
//        /// </summary>
//        [DataMember]
//        [References("AccessTypeID", "ID", "REFERENCES ComYeeMS.dbo.TB_AccessType (ID)")]
//        public TB_AccessType ref_TB_AccessType { get; set; }


//        ///<summary>
//        /// 备注
//        /// </summary>
//        [Fields("Rermak", "varchar", 1000, true, 0, "备注")]
//        [DataMember]
//        public string Rermak { get; set; }




//    }//end TB_ProductStorage
//}//end namespace



